﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

[DataContract]

public class Employee
{
    /// <summary>
    /// Constructor for Employee
    /// </summary>
    public Employee(string phoneNo, string lname, string fname, bool isadmin, int id, bool isactive)
    {
        lName = lname;
        fName = fname;
        //Bookings = bookings;
        IsAdmin = isadmin;
        Id = id;
        IsActive = isactive;
        PhoneNo = phoneNo;
    }
    /// <summary>
    /// Phone number for Employee
    /// </summary>
    [DataMember]
    public string PhoneNo
    {
        get;
        set;
    }
    /// <summary>
    /// Last name for Employee
    /// </summary>
    [DataMember]
	public string lName
	{
		get;
		set;
	}
    /// <summary>
    /// ID for Employee
    /// </summary>
    [DataMember]
	public int Id
	{
		get;
		set;
	}
    /// <summary>
    /// First for Employee
    /// </summary>
    [DataMember]
	public string fName
	{
		get;
		set;
	}
    /// <summary>
    /// List of the booking the Employee has made
    /// </summary>
    [DataMember]
	public List<Booking> Bookings
	{
		get;
		set;
	}
    /// <summary>
    /// bool is the Employee admin
    /// </summary>
    [DataMember]
	public bool IsAdmin
	{
		get;
		set;
	}
    /// <summary>
    /// bool is the Employee active
    /// </summary>
    [DataMember]
    public bool IsActive
    {
        get;
        set;
    }
    /// <summary>
    /// method for adding a booking ti the Employee
    /// </summary>
	public void AddBooking(Booking booked)
	{
        Bookings.Add(booked);
	}

}

